/* 
 * File:   pass_poiter_to_function.cpp
 * Author: tandaica0612
 *
 * Created on November 24, 2008, 11:26 PM
 */

#include <stdlib.h>
#include <iostream>
#include <string>
using namespace std;
/*
 * 
 */
class Pass{
public:
    string tenlop;
    Pass(string tenlop){
        this->tenlop = tenlop;
    }
};
/*
 *Cach' nay` thuong` dung` cho cac' mang? va` cac' object vi` voi' cac' kieu?
 *gia' tri. co' san~ thi` kho' co' the? lay' ra con tro? truyen` vo ham`
 **/
void thaydoiObject(Pass *obj){
    Pass obj2("This is object two");
    *obj = obj2;//Vung` gia' tri. con tro? obj tro? toi' se~ bi. thay doi? (dia. chi? 0 thay doi?)
}
/*
int main(int argc, char** argv) {
    Pass* obj = new Pass("This is object one");
    cout << obj->tenlop << endl;
    thaydoiObject(obj);
    cout << obj->tenlop << endl;
    return (EXIT_SUCCESS);
}
 **/
/*
This is object one
This is object two
 **/
